{% extends "tpl_base.html" %}
{% block maincontent %}
<div class="notification">
</div>
<div class="news">
	<div class="introduction">
		<div class="title">
			{{intro.title}}
		</div>
		<div class="content">
			{{intro.content|striptags|truncatechinese:"300"}}<a href="/intro">[查看详细]</a>
		</div>
	</div>
	<div class="update">
		<div class="col col2">
			<div class="title">
				{{membertitle}}简介
			</div>
			<div class="content">
				{% ifnotequal members None %}
				{% for member in members %}
				<div class="doctor border-bottom">
					<div class="portrait"><a href="/member/{{member.key.id}}"><img src="/portrait/{{member.key}}.jpg" class="border" /></a></div>
					<div class="profile">
						<div class="name"><a href="/member/{{member.key.id}}">{{member.name}}</a></div>
						<div class="grade">{{member.title}}</div>
						<div class="good">{{member.subject}}</div>
					</div>
				</div>
				{% endfor %}
				{% else %}
				<div class="warn">当前没有任何{{membertitle}}数据，请登陆<a href="/admin">管理员界面</a>，添加数据</div>
				{% endifnotequal %}
			</div>
		</div>
		<div class="col col2">
			{% ifnotequal speitems None %}
			{% for item in speitems %}
			<div class="specialist">
				<div class="title">
					<a href="/special/{{item.key.id}}"><span class="prefix">特色专科</span>{{item.title}}</a>
				</div>
				<div class="info">
					<div class="photo"><img src="/static/images/{% cycle specialist_1.png,specialist_2.png %}" class="border" /></div>
					<div class="intro">
						{{item.content|striptags|truncatechinese:"90"}}[<a href="/special/{{item.key.id}}">详情</a>]
					</div>
				</div>
			</div>
			{% endfor %}
			{% endifnotequal %}
		</div>
	</div>
</div> 
{% endblock %}